#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include"SeqList.h"

void Test001()
{
	SL sl;
	SLInit(&sl);
	SLPushBack(&sl, 1);
	SLPushBack(&sl, 2);
	SLPushBack(&sl, 3);
	SLPushBack(&sl, 4);
	SLPushBack(&sl, 5);
	SLPrint(&sl);

	SLErase(&sl, 3);
	SLPrint(&sl);

	SLInsert(&sl, 3, 4);
	SLPrint(&sl);

	int pos = SLFind(&sl, 2);
	if (pos != -1)
	{
		SLErase(&sl, pos);
	}
	SLPrint(&sl);

}

int main()
{
	Test001();

	return 0;
}
